<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.min.js"></script>
</head>
<body>
    <div id="app">
        <input type="text" v-model="name">
        {{name}}
    </div>
</body>
</html>
<script>
var vm=new Vue({
    el:"#app",
    data:{
        name:'我的Vue程序'
    },
    created:function(){
        console.log("初始化和加载");
    },
    mounted:function(){
        console.log("绑定");
    },
    updated:function(){
        console.log(name)
    }
});
</script>